import request from '@/utils/request'
/**
 * 获取所有的车辆信息
 * @param {查询参数} search
 */
export const getDistributionPage = (search = {}) => {
  search.type=2
  return request.fetchGet('/hz/receivedaddr/page', search)
}
export const getPlaceofreceiptPage = (search = {}) => {
  search.type=1
  return request.fetchGet('/hz/receivedaddr/page', search)
}

export const getAddressByType = (search = {}) => {
  return request.fetchGet('/hz/receivedaddr/page', search)
}

export const edit = (params = {}) => {
  return request.fetchPost('/hz/receivedaddr/edit', params)
}
